package com.css.zfzx.sjcj.modules.hddcA6StrongSeiHasFractBlt.repository;

import com.css.zfzx.sjcj.modules.hddcA6StrongSeiHasFractBlt.repository.entity.HddcA6StrongseihasfractbltEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author zyb
 * @date 2020-11-28
 */
public interface HddcA6StrongseihasfractbltRepository extends JpaRepository<HddcA6StrongseihasfractbltEntity, String> {
    @Query(nativeQuery = true, value = "select * from hddc_a6_strongseihasfractblt where project_name in :projectIds")
    List<HddcA6StrongseihasfractbltEntity> queryByProjectId(List<String> projectIds);

    @Query(nativeQuery = true, value = "select * from hddc_a6_strongseihasfractblt where task_name in :taskIds")
    List<HddcA6StrongseihasfractbltEntity> queryByTaskId(List<String> taskIds);
}
